package io.wongxd.solution

import android.content.Context
import io.wongxd.solution.data.kvholder.KVHolder
import io.wongxd.solution.data.kvholder.KVLogLevel
import io.wongxd.solution.permissionFlow.initializer.PermissionFlowInitializer

object WSolution {

    var debug: Boolean = false

    fun init(ctx: Context) {
        PermissionFlowInitializer.init(ctx)
        initKvHolder(ctx)
    }

    private fun initKvHolder(ctx: Context) {
        KVHolder.init(ctx, ctx.cacheDir.path + "/kvHolder", logLevel = KVLogLevel.LevelWarning)
    }

}